package com.jf.identity.entity;

import com.jf.identity.util.Params;

import java.io.Serializable;

/**
 * 一场考试的基本信息
 *
 * @author FCG
 */
public class ExamBaseParam implements Serializable {
    private static final long serialVersionUID = 6388469121108439528L;
    public final static String ORGCODE = "orgCode";
    public final static String EXAM_ID = "examId";
    public final static String EXAM_SESSION_NUM = "examSessionNum";
    public final static String LOGIC_EXAM_ROOM_NUM = "logicExamRoomNum";
    public final static String DEVICE_ID = "deviceId";

    private String orgCode;
    private String orgIdenCode;
    private String examId;
    private String examSessionNum;
    private String logicExamRoomNum;
    private String deviceId;

    public static ExamBaseParam copyOf(ExamBaseParam examBaseParam) {
        if (examBaseParam == null) {
            return null;
        }
        ExamBaseParam copy = new ExamBaseParam();
        copy.setorgIdenCode(examBaseParam.getorgIdenCode());
        copy.setLogicExamRoomNum(examBaseParam.getLogicExamRoomNum());
        copy.setDeviceId(examBaseParam.getDeviceId());
        copy.setExamSessionNum(examBaseParam.getExamSessionNum());
        copy.setOrgCode(examBaseParam.getOrgCode());
        copy.setExamId(examBaseParam.getExamId());
        return copy;
    }

    public static void isBlank(ExamBaseParam examBaseParam) {
        Params.isBlank(examBaseParam, "考试信息");
    }

    public void validate(String... fields) {
        //
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getorgIdenCode() {
        return orgIdenCode;
    }

    public void setorgIdenCode(String orgIdenCode) {
        this.orgIdenCode = orgIdenCode;
    }

    public String getExamId() {
        return examId;
    }

    public void setExamId(String examId) {
        this.examId = examId;
    }

    public String getExamSessionNum() {
        return examSessionNum;
    }

    public void setExamSessionNum(String examSessionNum) {
        this.examSessionNum = examSessionNum;
    }

    public String getLogicExamRoomNum() {
        return logicExamRoomNum;
    }

    public void setLogicExamRoomNum(String logicExamRoomNum) {
        this.logicExamRoomNum = logicExamRoomNum;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}
